package com.example.shopping;

import com.example.shopping.dao.IBrandDao;
import com.example.shopping.dao.ISellerDao;
import com.example.shopping.pojo.Brand;
import com.example.shopping.pojo.Seller;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

@SpringBootTest
class testSeller {
    @Autowired
    private ISellerDao sellerDao;

    @Test
    void selectSellerList() {
        List<Seller> sellers = sellerDao.selectSellerList();
        System.out.println(sellers);
    }

    @Test
    void update() {
        System.out.println(sellerDao.update(new Seller(2, 5)));
    }

    @Test
    void updateCloseSeller() {
        System.out.println(sellerDao.updateCloseSeller(13));
    }

    @Test
    void SellerByLikeStatus() {
        List<Seller> sellers = sellerDao.queryByLike(new Seller("", "%" + "解忧" + "%"));
        System.out.println(sellers);
    }




}
